//
//  Tab2CV.m
//  OCProject
//
//  Created by 王明钦 on 2018/2/9.
//  Copyright © 2018年 oc. All rights reserved.
//

#import "Tab2CV.h"
#import "LoginCV.h"
#import "RegisterCV.h"

@interface Tab2CV ()

@end

@implementation Tab2CV

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self setMainTitle:@"TAB2"];
    [self setSubTitle:@"副标题"];

}
- (IBAction)action:(id)sender {
    RegisterCV *tab2 = [[RegisterCV alloc] init];
    [self.navigationController pushViewController:tab2 animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)rightAction{
    NSLog(@"子类");
    LoginCV *loginCV = [[LoginCV alloc] init];
    [self.navigationController pushViewController:loginCV animated:YES];
}
//-(void)backAction{
//    NSLog(@"不操作");
//}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
